package com.ruoyi.gwc.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 加油卡管理对象 t_fuel_card_management
 * 
 * @author wp
 * @date 2024-12-13
 */
public class TFuelCardManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 加油卡id */
    private Long fuelId;

    /** 所属作业公司 */
    private Long companyId;
    @Excel(name = "公司名称",sort = 1)
    private String companyName;

    /** 车辆id */
    private Long vehicleId;
    @Excel(name = "车牌号",sort = 2)
    @TableField(exist = false)
    private String numberPlate;

    /** 油卡编号 */
    @Excel(name = "油卡编号",sort = 3)
    private String oilNum;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss",sort = 4)
    private Date buyTime;

    @ApiModelProperty("开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty("结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd", timezone = "GMT+8")
    @TableField(exist = false)
    private Date endTime;

    /** 备注说明 */
    @Excel(name = "备注说明",sort = 7)
    private String remarks;

    /** 单位公里 */
    @Excel(name = "单位公里",sort = 5)
    private BigDecimal mileage;
    @TableField(exist = false)
    private String mileageStr;

    /** 单位元 */
    @Excel(name = "单位元",sort = 6)
    private BigDecimal amount;
    @TableField(exist = false)
    private String amountStr;

    public void setAmountStr(String amountStr)    {
        this.amountStr = amountStr;
    }
    public String getAmountStr(){  return  amountStr;  }

    public void setMileageStr(String mileageStr)    {
        this.mileageStr = mileageStr;
    }
    public String getMileageStr(){  return  mileageStr;  }


    public void setVehicleId(Long vehicleId)
    {
        this.vehicleId = vehicleId;
    }
    public Long getVehicleId()
    {
        return vehicleId;
    }

    public void setNumberPlate(String numberPlate)
    {
        this.numberPlate = numberPlate;
    }
    public String getNumberPlate(){  return numberPlate;  }

    public void setFuelId(Long fuelId) 
    {
        this.fuelId = fuelId;
    }

    public Long getFuelId() 
    {
        return fuelId;
    }
    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }
    public void setOilNum(String oilNum) 
    {
        this.oilNum = oilNum;
    }

    public String getOilNum() 
    {
        return oilNum;
    }
    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setMileage(BigDecimal mileage)
    {
        this.mileage = mileage;
    }

    public BigDecimal getMileage()
    {
        return mileage;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }

    public void setCompanyName(String companyName)
    {
        this.companyName = companyName;
    }
    public String getCompanyName(){  return companyName;  }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fuelId", getFuelId())
            .append("companyId", getCompanyId())
            .append("companyName", getCompanyName())
            .append("oilNum", getOilNum())
            .append("buyTime", getBuyTime())
            .append("remarks", getRemarks())
            .append("mileage", getMileage())
            .append("mileageStr", getMileageStr())
            .append("amount", getAmount())
            .append("amountStr", getAmountStr())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("createBy", getCreateBy())
            .toString();
    }
}
